home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
tlxinstl.zip
/
ERRHAND.ASM
< prev
next >
Wrap
Assembly Source File
|
1991-10-17
|
14KB
|
544 lines
PAGE 64,132 ; (CTRL-OH) IBM PC PRINTER CONDENSED MODE
TITLE ERRHAND
EXTRN COL:word
EXTRN COL_HOLD:word
EXTRN ROW:byte
EXTRN boxtl:word
EXTRN boxtr:word
EXTRN boxbl:word
EXTRN boxbr:word
EXTRN colcnt:word
EXTRN cursor_location:word
EXTRN field_start:word
EXTRN field_stop:word
EXTRN inv_screen_attr:byte
EXTRN linecnt:word
EXTRN screen_attr:byte
EXTRN screen_title:byte
EXTRN copyright:byte
EXTRN anykey:byte
EXTRN address1:byte
EXTRN address2:byte
EXTRN phone:byte
EXTRN crlf:byte
EXTRN version:byte
EXTRN stat_port:word
EXTRN video_address:word
.model small
IF1
INCLUDE ASSEMBLY.MAC
ENDIF
ERRORSEGMENT SEGMENT PUBLIC 'CODE'
ERRHAND PROC FAR
ASSUME CS:ERRORSEGMENT
PUBLIC ERRHAND
JMP START
cr equ 0DH
lf equ 0AH
eof equ 1AH
;--------------------------- messages ------------------------------
err_1 db 'invalid function number', cr,lf,'$'
err_2 db 'file not found', cr,lf,'$'
err_3 db 'path not found', cr,lf,'$'
err_4 db 'to many open files (no handles left)', cr,lf,'$'
err_5 db 'access denied', cr,lf,'$'
err_6 db 'invalid handle', cr,lf,'$'
err_7 db 'memory control blocks destroyed', cr,lf,'$'
err_8 db 'insufficient memory', cr,lf,'$'
err_9 db 'invalid memory block address', cr,lf,'$'
err_10 db 'invalid environment', cr,lf,'$'
err_11 db 'invalid format', cr,lf,'$'
err_12 db 'invalid access code', cr,lf,'$'
err_13 db 'invalid data', cr,lf,'$'
err_14 db 'invalid error message NOT USED', cr,lf,'$'
err_15 db 'invalid drive was specified', cr,lf,'$'
err_16 db 'attempt to remove current directory', cr,lf,'$'
err_17 db 'not same device', cr,lf,'$'
err_18 db 'no matching or no more wildcard files', cr,lf,'$'
err_19 db 'attempt to write on write procted disk',cr,lf,'$'
err_20 db 'unknown unit', cr,lf,'$'
err_21 db 'drive not ready', cr,lf,'$'
err_22 db 'end of file mark not found in file - ',cr,lf,'$'
err_23 db 'data error (crc)', cr,lf,'$'
err_24 db 'bad request structure length', cr,lf,'$'
err_25 db 'seek error', cr,lf,'$'
err_26 db 'unknown media type', cr,lf,'$'
err_27 db 'sector not found', cr,lf,'$'
err_28 db 'printer out of paper', cr,lf,'$'
err_29 db 'write fault', cr,lf,'$'
err_30 db 'read fault', cr,lf,'$'
err_31 db 'general failure', cr,lf,'$'
err_32 db 'sharing violation', cr,lf,'$'
err_33 db 'lock violation', cr,lf,'$'
err_34 db 'invalid disk change', cr,lf,'$'
err_35 db 'fcb unavailable', cr,lf,'$'
err_36 db 'sharing buffer overflow', cr,lf,'$'
err_37 db 'reserved', cr,lf,'$'
err_38 db 'reserved', cr,lf,'$'
err_39 db 'reserved', cr,lf,'$'
err_40 db 'reserved', cr,lf,'$'
err_41 db 'reserved', cr,lf,'$'
err_42 db 'reserved', cr,lf,'$'
err_43 db 'reserved', cr,lf,'$'
err_44 db 'reserved', cr,lf,'$'
err_45 db 'reserved', cr,lf,'$'
err_46 db 'reserved', cr,lf,'$'
err_47 db 'reserved', cr,lf,'$'
err_48 db 'reserved', cr,lf,'$'
err_49 db 'reserved', cr,lf,'$'
err_50 db 'network request not supported', cr,lf,'$'
err_51 db 'remote computer not listening', cr,lf,'$'
err_52 db 'duplicate name on network', cr,lf,'$'
err_53 db 'network name not found', cr,lf,'$'
err_54 db 'network busy', cr,lf,'$'
err_55 db 'network device no longer exist', cr,lf,'$'
err_56 db 'net BIOS command limit exceeded', cr,lf,'$'
err_57 db 'network adapter hardware error', cr,lf,'$'
err_58 db 'incorrect response from network', cr,lf,'$'
err_59 db 'unexpected network error', cr,lf,'$'
err_60 db 'incompatiable remote adapter', cr,lf,'$'
err_61 db 'print que full', cr,lf,'$'
err_62 db 'not enough space for print file', cr,lf,'$'
err_63 db 'print file was deleted', cr,lf,'$'
err_64 db 'network name was deleted', cr,lf,'$'
err_65 db 'access denied', cr,lf,'$'
err_66 db 'network device type incorrect', cr,lf,'$'
err_67 db 'network name not found', cr,lf,'$'
err_68 db 'network name limit exceeded', cr,lf,'$'
err_69 db 'net BIOS session limit exceeded', cr,lf,'$'
err_70 db 'temporarily paused', cr,lf,'$'
err_71 db 'network request not accepted', cr,lf,'$'
err_72 db 'print or disk redirection is paused', cr,lf,'$'
err_73 db 'reserved', cr,lf,'$'
err_74 db 'reserved', cr,lf,'$'
err_75 db 'reserved', cr,lf,'$'
err_76 db 'reserved', cr,lf,'$'
err_77 db 'reserved', cr,lf,'$'
err_78 db 'reserved', cr,lf,'$'
err_79 db 'reserved', cr,lf,'$'
err_80 db 'file exists', cr,lf,'$'
err_81 db 'resevered', cr,lf,'$'
err_82 db 'cannot make directory entry', cr,lf,'$'
err_83 db 'fail on interrupt 24', cr,lf,'$'
err_84 db 'too many redirections', cr,lf,'$'
err_85 db 'duplicate redirection', cr,lf,'$'
err_86 db 'invalid password', cr,lf,'$'
err_87 db 'network data fault', cr,lf,'$'
err_88 db 'seek error', cr,lf,'$'
START:
push ax
EQUIP_CHK ;macro determines if color or mono
MOV ES,AX ;screen is connected
CMP AX,0B000H
JNE COLOR
SCREEN SEGMENT AT 0B000H ;Monochrome screen
SCREEN ENDS
JMP SHORT SET_SCREEN
;
COLOR:
SCREEN SEGMENT AT 0B800H ;Color screen
SCREEN ENDS
;
SET_SCREEN:
ASSUME ES:SCREEN
clr
MAKEBOX 6,12,17,66 ;startline,startcol,stopline,stopcol
calc_addr 12,15
cursor
pop ax
push ds
push ax
mov ax,cs
mov ds,ax
pop ax
cmp al,0
jne _01
jmp err_exit
_01:
cmp al,1
jne cmp_2
mov dx,offset cs:err_1
jmp print_msg
cmp_2: cmp al,2
jne cmp_3
mov dx,offset cs:err_2
jmp print_msg
cmp_3: cmp al,3
jne cmp_4
mov dx,offset cs:err_3
jmp print_msg
cmp_4: cmp al,4
jne cmp_5
mov dx,offset cs:err_4
jmp print_msg
cmp_5: cmp al,5
jne cmp_6
mov dx,offset cs:err_5
jmp print_msg
cmp_6: cmp al,6
jne cmp_7
mov dx,offset cs:err_6
jmp print_msg
cmp_7: cmp al,7
jne cmp_8
mov dx,offset cs:err_7
jmp print_msg
cmp_8: cmp al,8
jne cmp_9
mov dx,offset cs:err_8
jmp print_msg
cmp_9: cmp al,9
jne cmp_10
mov dx,offset cs:err_9
jmp print_msg
cmp_10: cmp al,10
jne cmp_11
mov dx,offset cs:err_10
jmp print_msg
cmp_11: cmp al,11
jne cmp_12
mov dx,offset cs:err_11
jmp print_msg
cmp_12: cmp al,12
jne cmp_13
mov dx,offset cs:err_12
jmp print_msg
cmp_13: cmp al,13
jne cmp_14
mov dx,offset cs:err_13
jmp print_msg
cmp_14: cmp al,14
jne cmp_15
mov dx,offset cs:err_14
jmp print_msg
cmp_15: cmp al,15
jne cmp_16
mov dx,offset cs:err_15
jmp print_msg
cmp_16: cmp al,16
jne cmp_17
mov dx,offset cs:err_16
jmp print_msg
cmp_17: cmp al,17
jne cmp_18
mov dx,offset cs:err_17
jmp print_msg
cmp_18: cmp al,18
jne cmp_19
mov dx,offset cs:err_18
jmp print_msg
cmp_19: cmp al,19
jne cmp_20
mov dx,offset cs:err_19
jmp print_msg
cmp_20: cmp al,20
jne cmp_21
mov dx,offset cs:err_20
jmp p